package com.zelix;

import java.util.*;

public class hr {

    public static int a;
    private Random b;
    private mt c;
    private int d[];
    private os e[];
    private us f;
    private us g;
    private ks h;
    private us i;
    private us j;
    private us k;
    private boolean l;
    private boolean m;
    private static String z[];

    hr(boolean flag) {
        e = new os[5];
        b = new Random(px.b());
        m = flag;
    }

    public void a(ArrayList arraylist, int i1, ArrayList arraylist1) {
        int j1;
        boolean flag;
        flag = tb.b;
        j1 = 0;
        for (; j1 < arraylist.size(); j1++) {
            td td1 = (td) arraylist.get(j1);
            td td2 = new td(true);
            arraylist1.add(new nd(td2));
            arraylist1.add(td1);
            arraylist1.add(kd.d(i1));
            a(arraylist1, i1);
            arraylist1.add(kd.j(i1));
            arraylist1.add(td2);
        }
    }

    public void a(mt mt1, Hashtable hashtable, ly ly, it it, Vector vector, boolean flag, boolean flag1) {
        c = mt1;
        l = flag;
        d = b();
        lm lm1 = (lm) mt1.k();
        h = lm1.b(z[0], vector);
        i = lm1.b(z[0], z[8], z[2], vector, it);
        j = lm1.b(z[0], z[4], z[9], vector, it);
        k = null;
        if (flag1)
            k = lm1.b(z[0], z[6], z[5], vector, it);
        if (flag) {
            zs zs1 = new zs(0, lm1, z[1]);
            vector.addElement(zs1);
            zs zs2 = new zs(0, lm1, z[10]);
            vector.addElement(zs2);
            eu aeu[] = new eu[0];
            Vector vector1 = new Vector();
            a(((List) (vector1)), i, m);
            du du1 = new du(vector1);
            String s = mt1.a(ly, z[7], hashtable);
            zs zs3 = new zs(0, lm1, s);
            vector.addElement(zs3);
            zs zs4 = new zs(0, lm1, z[7]);
            vector.addElement(zs4);
            rt rt1 = new rt(zs1, 6, 1, du1, aeu);
            pt apt[] = new pt[1];
            apt[0] = rt1;
            ou ou1 = new ou(mt1, zs3, zs4, apt);
            ou1.K();
            ou1.c(true);
            c.a(ou1, it);
            f = lm1.b(mt1.j(), s, z[7], vector, it);
            Vector vector2 = new Vector();
            a(((List) (vector2)), 0, i, j, h, k, flag);
            du du2 = new du(vector2);
            String s1 = mt1.a(ly, z[3], hashtable);
            zs zs5 = new zs(0, lm1, s1);
            vector.addElement(zs5);
            zs zs6 = new zs(0, lm1, z[3]);
            vector.addElement(zs6);
            rt rt2 = new rt(zs1, 7, 2, du2, aeu);
            pt apt1[] = new pt[1];
            apt1[0] = rt2;
            ou ou2 = new ou(mt1, zs5, zs6, apt1);
            ou2.K();
            ou2.c(true);
            c.a(ou2, it);
            g = lm1.b(mt1.j(), s1, z[3], vector, it);
        }
    }

    public static String a(String s, int ai[]) {
        char ac[];
        int i1;
        int j1;
        boolean flag;
        flag = tb.b;
        ac = s.toCharArray();
        i1 = ac.length;
        j1 = 0;
        for (; j1 < i1; j1++) {
            int k1 = j1 % 5;
            ac[j1] = (char) (ac[j1] ^ ai[k1]);
        }
        String s1 = new String(ac);
        return s1;
    }

    public us a(mt mt1) {
        return g;
    }

    public int[] a() {
        return d;
    }

    private int[] b() {
        byte byte0;
        int ai[];
        int i1;
        boolean flag;
        flag = tb.b;
        byte0 = 5;
        ai = new int[byte0];
        i1 = 0;
        for (; i1 < byte0; i1++) {
            int j1 = b.nextInt() % 127;
            if (j1 < 0)
                j1 += 127;
            j1++;
            ai[i1] = j1;
        }
        return ai;
    }

    public us b(mt mt1) {
        return f;
    }

    private void a(List list, int i1, us us, us us1, ks ks, us us2, boolean flag) {
        td td1;
        td td2;
        td td3;
        td td4;
        td td5;
        td td6;
        td td7;
        td td8;
        td td9;
        td atd[];
        boolean flag1;
        label0:
        {
            flag1 = tb.b;
            td1 = new td(true);
            td2 = new td(true);
            td3 = new td(true);
            td4 = new td(true);
            td5 = new td(true);
            td6 = new td(true);
            td7 = new td(true);
            td8 = new td(true);
            td9 = new td(true);
            atd = (new td[]{
                    td2, td3, td4, td5
            });
            if (flag) {
                list.add(de.n(42));
                if (!flag1)
                    break label0;
            }
            list.add(new zd(182, us));
        }
        label1:
        {
            list.add(de.n(89));
            list.add(de.n(190));
            list.add(de.n(95));
            list.add(de.n(3));
            list.add(kd.g(i1 + 1));
            if (m) {
                list.add(de.n(95));
                list.add(de.n(90));
                list.add(de.n(4));
                list.add(new md(163, td8));
                if (!flag1)
                    break label1;
            }
            list.add(new nd(td8));
        }
        label2:
        {
            list.add(td1);
            list.add(de.n(89));
            list.add(kd.f(i1 + 1));
            list.add(td9);
            list.add(de.n(92));
            list.add(de.n(52));
            list.add(kd.f(i1 + 1));
            list.add(de.n(8));
            list.add(de.n(112));
            list.add(new sd(td6, 0, 3, atd));
            list.add(td2);
            list.add(kd.i(d[0]));
            list.add(new nd(td7));
            list.add(td3);
            list.add(kd.i(d[1]));
            list.add(new nd(td7));
            list.add(td4);
            list.add(kd.i(d[2]));
            list.add(new nd(td7));
            list.add(td5);
            list.add(kd.i(d[3]));
            list.add(new nd(td7));
            list.add(td6);
            list.add(kd.i(d[4]));
            list.add(td7);
            list.add(de.n(130));
            list.add(de.n(146));
            list.add(de.n(85));
            list.add(kd.c(i1 + 1, 1));
            if (m) {
                list.add(de.n(95));
                list.add(de.n(90));
                list.add(new md(154, td8));
                list.add(de.n(92));
                list.add(de.n(95));
                list.add(new nd(td9));
            }
            list.add(td8);
            list.add(de.n(95));
            list.add(de.n(90));
            list.add(kd.f(i1 + 1));
            list.add(new md(163, td1));
            list.add(new ce(ks));
            list.add(de.n(90));
            list.add(de.n(95));
            list.add(new zd(183, us1));
            if (us2 != null)
                list.add(new zd(182, us2));
            if (flag) {
                list.add(de.n(176));
                if (!flag1)
                    break label2;
            }
            list.add(de.n(95));
            list.add(de.n(87));
        }
    }

    private void a(List list, us us, boolean flag) {
        td td1;
        label0:
        {
            td1 = new td(true);
            td td2 = new td(true);
            list.add(de.n(42));
            list.add(new zd(182, us));
            list.add(de.n(89));
            if (flag)
                list.add(td2);
            list.add(de.n(190));
            if (flag)
                list.add(de.n(90));
            list.add(kd.i(2));
            list.add(new md(162, td1));
            if (flag) {
                list.add(de.n(90));
                list.add(de.n(95));
                list.add(new md(153, td2));
                if (!tb.b)
                    break label0;
            }
            list.add(de.n(89));
        }
        list.add(de.n(3));
        if (flag)
            list.add(de.n(91));
        list.add(de.n(92));
        list.add(de.n(52));
        list.add(kd.i(d[4]));
        list.add(de.n(130));
        list.add(de.n(146));
        list.add(de.n(85));
        list.add(td1);
        list.add(de.n(176));
    }

    public void a(ArrayList arraylist, vs vs, ys ys, boolean flag, td td1) {
        boolean flag1;
        label0:
        {
            flag1 = tb.b;
            if (ys.j() > 255) {
                arraylist.add(new zd(19, ys));
                if (!flag1)
                    break label0;
            }
            arraylist.add(new ud(ys));
        }
        label1:
        {
            if (flag) {
                arraylist.add(new od(td1));
                if (!flag1)
                    break label1;
            }
            arraylist.add(new zd(184, f));
            arraylist.add(new zd(184, g));
        }
        arraylist.add(new zd(179, vs));
    }

    public void a(ArrayList arraylist, vs vs, ys ays[], boolean flag, td td1) {
        int i1;
        int j1;
        boolean flag1;
        flag1 = tb.b;
        i1 = ays.length;
        arraylist.add(kd.i(i1));
        arraylist.add(new zd(189, h));
        j1 = 0;
        for (; j1 < i1; j1++) {
            {
                arraylist.add(de.n(89));
                arraylist.add(kd.i(j1));
                if (ays[j1].j() > 255) {
                    arraylist.add(new zd(19, ays[j1]));
                }
                arraylist.add(new ud(ays[j1]));
            }
            if (flag) {
                arraylist.add(new od(td1));
            }
            arraylist.add(new zd(184, f));
            arraylist.add(new zd(184, g));
            arraylist.add(de.n(83));
        }
        arraylist.add(new zd(179, vs));
    }

    public void a(ArrayList arraylist, int i1, ys ays[], td td1) {
        int j1;
        int k1;
        boolean flag;
        flag = tb.b;
        j1 = ays.length;
        if (j1 > 1) {
            arraylist.add(kd.i(j1));
            arraylist.add(new zd(189, h));
            k1 = 0;
            for (; k1 < j1; k1++) {
                label0:
                {
                    arraylist.add(de.n(89));
                    arraylist.add(kd.i(k1));
                    if (ays[k1].j() > 255) {
                        arraylist.add(new zd(19, ays[k1]));
                        if (!flag)
                            break label0;
                    }
                    arraylist.add(new ud(ays[k1]));
                }
                arraylist.add(new od(td1));
                arraylist.add(de.n(83));
            }
            label1:
            {
                if (ays[0].j() > 255) {
                    arraylist.add(new zd(19, ays[0]));
                    if (!flag)
                        break label1;
                }
                arraylist.add(new ud(ays[0]));
            }
            arraylist.add(new od(td1));
            arraylist.add(kd.d(i1));
        }
    }

    private void a(ArrayList arraylist, int i1) {
        label0:
        {
            if (l) {
                arraylist.add(new zd(184, f));
                arraylist.add(new zd(184, g));
                if (!tb.b)
                    break label0;
            }
            a(((List) (arraylist)), i1, i, j, h, k, l);
        }
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x31;
                    break;
                case 1:
                    key = 66;
                    break;
                case 2:
                    key = 76;
                    break;
                case 3:
                    key = 42;
                    break;
                default:
                    key = 34;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }


    static {
        String as[];
        as = new String[11];
        as[0] = "[#:K\r]#\"M\rb6>CLV";
        as[1] = "r-(O";
        as[2] = "\031k\027i";
        as[3] = "\031\031\017\003n[#:K\r]#\"M\rb6>CLVy";
        as[4] = "\r+\"CV\017";
        as[5] = "\031k\000@CG#cFC_%cyVC+\"M\031";
        as[6] = "X,8OP_";
        as[7] = "\031\016&KTPm KLVm\037^PX,+\021\013j\001";
        as[8] = "E-\017BCC\003>XCH";
        as[9] = "\031\031\017\003t";
        as[10] = "t:/ORE+#DQ";
        for (int i = 0; i < as.length; i++) {
            as[i] = z(as[i].toCharArray());
        }
        z = as;
        a = 4;
    }
}